
/* Simple program:  Create a blank window, wait for keypress, quit.

   Please see the SDL documentation for details on using the SDL API:
   /Developer/Documentation/SDL/docs.html
*/
   
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#include "SDL.h"
#include "SDL_ttf/SDL_ttf.h"
#include "app.h"
#include "DebugFuncs.h"

SDL_Surface* loadSprite(const char* file);

int main(int argc, char *argv[])
{
	//create an instance of the application class and set it's bounds, the window size
	app appmain;
	appmain.setBounds(0,0,1280, 720);
	//init sdl on an QMView (app is a subclass of QMView, so this works), and kick off execution
	if(SDLInit(&appmain)) appmain.go();
	
	/* Clean up the SDL library */
	TTF_Quit();
	SDL_Quit();
	return(0);
}
